import { fetchMingXiData } from '@/apis/index'
import Base from "./base";
class MingXiModel extends Base {
  async queryList(type = null, category_id = null) {
    if (!this.hasMoreData) {
      return this.data
    }
    const params={
      pageNumber:this.pageNumber,
      pageSize:this.pageSize

    }
    const r = await fetchMingXiData(params);
    this.data = this.data.concat(r)
    this.hasMoreData = !(this.pageNumber === 10) //10最后一页
    this.pageNumber++
    return this.data
  }

}

export default MingXiModel